import os

# 允许上传的类型
STORAGE_EXTENSION_ALLOWED = os.getenv('STORAGE_EXTENSION_ALLOWED', (
    'png',
    'jpeg',
    'gif',
    'jpg',
    'jpe',
    'svg',
    'bmp'
))

# STORAGE提供器 配置
STORAGE_PROVIDER_DEFAULT = os.getenv('STORAGE_PROVIDER_DEFAULT', 'local')
STORAGE_LOCAL_BASE_URL = os.getenv('STORAGE_LOCAL_BASE_URL', '')
STORAGE_LOCAL_BASE_PATH = os.getenv('STORAGE_LOCAL_BASE_PATH', 'public/static/upload')

STORAGE_OSS_ACCESS_KEY = os.getenv('STORAGE_OSS_ACCESS_KEY')
STORAGE_OSS_SECRET_KEY = os.getenv('STORAGE_OSS_SECRET_KEY')
STORAGE_OSS_ENDPOINT = os.getenv('STORAGE_OSS_ENDPOINT')
STORAGE_OSS_BUCKET = os.getenv('STORAGE_OSS_BUCKET')
STORAGE_OSS_BASE_PATH = os.getenv('STORAGE_OSS_BASE_PATH')
STORAGE_OSS_DOMIAN = os.getenv('STORAGE_OSS_DOMIAN')
STORAGE_OSS_CNAME = os.getenv('STORAGE_OSS_CNAME', False)